<template>
  <div class="home-container">
    <h1 class="home-title">药物相互作用检测系统</h1>
    <p class="home-subtitle">基于AI深度分析的个性化药物风险评估与推荐平台</p>
    
    <div class="features-grid">
      <div class="feature-card">
        <div class="feature-icon">🔍</div>
        <h3 class="feature-title">药物相互作用检测</h3>
        <p class="feature-description">基于权威数据库快速检测多种药物间的潜在相互作用</p>
      </div>
      
      <div class="feature-card">
        <div class="feature-icon">🤖</div>
        <h3 class="feature-title">AI深度分析</h3>
        <p class="feature-description">利用AI技术对药物相互作用进行个性化深度分析</p>
      </div>
      
      <div class="feature-card">
        <div class="feature-icon">💊</div>
        <h3 class="feature-title">个性化推荐</h3>
        <p class="feature-description">根据患者特征提供个性化的药物替代方案推荐</p>
      </div>
    </div>
    
    <router-link to="/medications" class="start-btn">开始检测</router-link>
  </div>
</template>

<script setup lang="ts">
// Home view component - entry point for the drug interaction checker application
</script>

<style scoped>
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.home-title {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.home-subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.2em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.feature-card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  color: #42b983;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.feature-description {
  color: #666;
  line-height: 1.6;
}

.start-btn {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 12px 24px;
  background-color: #42b983;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.start-btn:hover {
  background-color: #359c6d;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .home-container {
    padding: 15px;
  }
}
</style>